aux_source_directory(./ DIR_SRCS)
aux_source_directory(../lib_conv_yuv DIR_SRCS)
aux_source_directory(../lib_cfg_parsing DIR_SRCS)
aux_source_directory(../lib_app/  lib_app_src)

list(REMOVE_ITEM lib_app_src ../lib_app/plateform_windows.cpp)

include_directories(./)
include_directories(../)
include_directories(../lib_app/)
include_directories(../lib_conv_yuv/)

include_directories(../include)
include_directories(../)
file(GLOB ALLHEADERS ${PROJECT_SOURCE_DIR}/include/config.h)

set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin/)	
add_executable(${encoder} ${ALLHEADERS} ${DIR_SRCS} ${lib_app_src} )
target_link_libraries(${encoder} ${encoder_lib})